﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Home.Domain.Entities
{
    public class Product
    {
        public int Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [Required]
        [MaxLength(60)]
        public string Name { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string Body { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        [MaxLength(200)]
        public string Pic { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        public virtual ICollection<ProductCategory> ProductCategorys { get; set; }
    }
}
